﻿using BattlelogMobile.Client.Service;
using BattlelogMobile.Core.Message;
using GalaSoft.MvvmLight.Messaging;

namespace BattlelogMobile.Client.ViewModel
{
    public class CopyrightViewModel : BaseViewModel
    {
        private readonly INavigationService _navigationService = new NavigationService();

        public CopyrightViewModel()
        {
            Messenger.Default.Register<PageOrientationChangedMessage>(this, message =>
                {
                    if ( message.IsPortrait)
                        _navigationService.NavigateTo(ViewModelLocator.LogInPageUri);
                });
        }
    }
}